import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../page/Home/index";
import SelectItem from "../page/SelectItem/index.vue";
import Test from "../page/Test/index.vue";
import WaitLoading from "../page/WaitLoading/index.vue";
import CommitPage from "../page/Commit/index.vue";
import Over from "../page/Over/index.vue";
import Into from "../page/InThere/index.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/home",
    name: "Home",
    component: Home
  },
  {
    path: "/into",
    name: "into",
    component: Into
  },
  {
    path: "/selectItem",
    name: "SelectItem",
    component: SelectItem
  },
  {
    path: "/waitLoading",
    name: "waitLoading",
    component: WaitLoading
  },
  {
    path: "/CommitPage",
    name: "CommitPage",
    component: CommitPage
  },
  {
    path: "/over",
    name: "over",
    component: Over
  },
  {
    path: "/test",
    name: "Test",
    component: Test
  }
];

const router = new VueRouter({
  routes
});

export default router;
